/**
 * @file   PlatformDefines.h
 * @author Djuro Drljaca (djurodrljaca@gmail.com)
 * @date   2014-4-18
 * @brief  Brief description of file.
 *
 * Copyright 2014  Djuro Drljaca (djurodrljaca@gmail.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DON_CORE_PLATFORM_PLATFORMDEFINES_H
#define DON_CORE_PLATFORM_PLATFORMDEFINES_H

#ifndef LIBDONQT4CORE_LIBRARY
#  error "This file must not be exported! It is only needed internaly in the library!"
#endif

#define DON_CORE_PLATFORM_LITTLE_ENDIAN    (1)
#define DON_CORE_PLATFORM_BIG_ENDIAN    (2)

// TODO: do the actual platform selection when the library is ported to other platforms
// TODO: check boost for an example: http://www.boost.org/doc/libs/1_39_0/boost/detail/endian.hpp

//---- x86, x86_64 ---------------------------------------------------------------------------------
#define DON_CORE_PLATFORM_ENDIANESS_INTEGER    (DON_CORE_PLATFORM_LITTLE_ENDIAN)
#define DON_CORE_PLATFORM_ENDIANESS_FLOAT32    (DON_CORE_PLATFORM_LITTLE_ENDIAN)
#define DON_CORE_PLATFORM_ENDIANESS_FLOAT64    (DON_CORE_PLATFORM_LITTLE_ENDIAN)
//--------------------------------------------------------------------------------------------------

#endif // DON_CORE_PLATFORM_PLATFORMDEFINES_H
